<html>
    <!-- Copyright 2010  Jacob Brunson  (email : gdocsuploader.gpl.license@jacobbrunson.com )

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-->
<head>
    <title>Demo</title>
    <script type="text/javascript" src="lib/air/AIRAliases.js"></script>
    <script type="text/javascript" src="lib/air/AIRIntrospector.js"></script>

    <script type="text/javascript">

    air.Introspector.Console.log("Creating socket object");
    var socket = new air.SecureSocket();

    air.Introspector.Console.log("Adding event listeners");
    socket.addEventListener(air.IOErrorEvent.IO_ERROR,
        function(event) {
            air.Introspector.Console.log("Socket io error event");
            air.Introspector.Console.log(event.target);
        }
    );
    socket.addEventListener(air.Event.CONNECT,
        function(event) {
            air.Introspector.Console.log("Socket connected event");
            air.Introspector.Console.log(event.target);
            event.target.close();
        }
    );
    socket.addEventListener(air.Event.CLOSE,
        function(event) {
            air.Introspector.Console.log("Socket closed event");
        }
    );

    air.Introspector.Console.log("Connecting socket");
    socket.connect('encrypted.google.com', '433');


    </script>

</head>
<body>
    <div id="percent"></div>
</body>
</html>